package com.zyw.zhuangdian;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Slf4j
@EnableTransactionManagement
@SpringBootApplication
public class ZhuangdianApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext application = SpringApplication.run(ZhuangdianApplication.class, args);
        ConfigurableEnvironment environment = application.getEnvironment();
        String uploadPath = environment.getProperty("zhuangdian.upload_file_location");
        String active = environment.getProperty("spring.profiles.active");

        log.info("=== using profile: "+active+" , uploadPath: "+uploadPath);
    }

}
